<%--
  REC COA-客户二
  User: Ivan
  Date: 2019-10-08 18:26
--%>
<%--
  SPWR COA-客户一
  User: Ivan
  Date: 2019-10-08 15:55
--%>
<style type="text/css">
tr, th, td {
    text-align: center;
}
</style>

<div class="bjui-pageHeader">
    <form id="pagerForm" data-toggle="ajaxsearch" action="${SYS_QUERY_PATH}" method="post">
        <div class="bjui-searchBar">
            <g:hiddenField name="SYS_QUERY_NAME" value="${SYS_QUERY_NAME}"/>
            <g:hiddenField name="EXPORT_CONTENT_NAME" value="Excel"/>
            <label>开始日期<strong><span class="text-danger">*</span></strong>：</label>
            <input type="text" name="startTime" class="form-control" data-rule="required"
                   data-toggle="datepicker" data-pattern="yyyy-MM-dd"
                   size="11" id="start-date-input" readonly value="${startTime}"/>&nbsp;
            <label>结束日期<strong><span class="text-danger">*</span></strong>：</label>
            <input type="text" name="endTime" class="form-control" data-rule="required"
                   data-toggle="datepicker" data-pattern="yyyy-MM-dd"
                   size="11" id="end-date-input" readonly value="${endTime}"/>&nbsp;
            <label>品名：</label>
            <g:textField name="partName" value="${partName}" size="15" placeholder="请输入品名"/>&nbsp;
            <label>批次：</label>
            <g:textField name="lotId" value="${lotId}" size="15" placeholder="请输入批次"/>&nbsp;
            <label>箱号：</label>
            <g:textField name="startBoxLot" value="${startBoxLot}" size="12" placeholder="START"/>
            <g:textField name="endBoxLot" value="${endBoxLot}" size="12" placeholder="END"/>
            <br /><br />
            <button type="submit" class="btn-default" data-icon="search">查询</button>&nbsp;
            <a type="button" class="btn btn-blue" href="${request.getContextPath()}/RecCoaCustSecond/exportExcel"
               data-toggle="doexport" data-confirm-msg="确定要导出吗？" data-icon="file-excel-o" title="导出Excel">导出</a>
        </div>
    </form>
</div>

<div class="bjui-pageContent tableContent">
    <g:if test="${reportList.size() > 0}">
        <table class="table table-bordered table-hover table-striped table-top" data-nowrap="true"
               data-selected-multi="true" data-toggle="tablefixed" data-width="100%">
            <thead>
            <tr>
                <th width="50" rowspan="3">NO.</th>
                <th width="125">部件号</th>
                <th width="125">箱号</th>
                <th width="125">订单号</th>
                <th width="125">装运日期</th>
                <th width="125">装运数量</th>
                <th width="125">生产日期</th>
                <th width="125">生产数量</th>
                <th width="500" colspan="4">线痕</th>
                <th width="500" colspan="4">对角线</th>
                <th width="500" colspan="4">切方对面距离A</th>
                <th width="500" colspan="4">切方脚长度D</th>
                <th width="500" colspan="4">硅片厚度</th>
                <th width="500" colspan="4">TTV</th>
                <th width="500" colspan="4">切方垂直度</th>
                <th width="500" colspan="4">弯曲/翘曲</th>
                <th width="250" colspan="2">寿命</th>
                <th width="500" colspan="4">电阻率</th>
                <th width="125">氧含量</th>
                <th width="125">碳含量</th>
                <th width="125">判定结果</th>
            </tr>
            <tr>
                <th width="125">REC Part Number</th>
                <th width="125">BOX Lot#</th>
                <th width="125">REC PO</th>
                <th width="125">Shipment Date</th>
                <th width="125">Shipment Quantity</th>
                <th width="125">Production date</th>
                <th width="125">Production date Quantity</th>
                <th width="125">Sawmark Depth (um) Max</th>
                <th width="125">Sawmark Depth (um) Min</th>
                <th width="125">Sawmark Depth (um) Average</th>
                <th width="125">Sawmark Depth (um) Std Dev</th>
                <th width="125">Diagonal Length (mm) Max</th>
                <th width="125">Diagonal Length (mm) Min</th>
                <th width="125">Diagonal Length (mm) Average</th>
                <th width="125">Diagonal Length (mm) Std Dev</th>
                <th width="125">Wafer Width (mm) Flat to Flat length Max</th>
                <th width="125">Wafer Width (mm) Flat to Flat length Min</th>
                <th width="125">Wafer Width (mm) Flat to Flat length Average</th>
                <th width="125">Wafer Width (mm) Flat to Flat length Std Dev</th>
                <th width="125">Bevel Width (mm) Corner Length Max</th>
                <th width="125">Bevel Width (mm) Corner Length Min</th>
                <th width="125">Bevel Width (mm) Corner Length Average</th>
                <th width="125">Bevel Width (mm) Corner Length Std Dev</th>
                <th width="125">Wafer Thickness (um) Max</th>
                <th width="125">Wafer Thickness (um) Min</th>
                <th width="125">Wafer Thickness (um) Average</th>
                <th width="125">Wafer Thickness (um) Std Dev</th>
                <th width="125">Total Thickness Variation (TTV)(um) Max</th>
                <th width="125">Total Thickness Variation (TTV)(um) Min</th>
                <th width="125">Total Thickness Variation (TTV)(um) Average</th>
                <th width="125">Total Thickness Variation (TTV)(um) Std Dev</th>
                <th width="125">Angle between adjacent sides (degrees) Ingot Squareness Max</th>
                <th width="125">Angle between adjacent sides (degrees) Ingot Squareness Min</th>
                <th width="125">Angle between adjacent sides (degrees) Ingot Squareness Average</th>
                <th width="125">Angle between adjacent sides (degrees) Ingot Squareness Std Dev</th>
                <th width="125">Bow (mm) Max</th>
                <th width="125">Bow (mm) Min</th>
                <th width="125">Bow (mm) Average</th>
                <th width="125">Bow (mm) Std Dev</th>
                <th width="125">Lifetime (us) Max</th>
                <th width="125">Lifetime (us) Min</th>
                <th width="125">Resistivity (Ohm cm) Max</th>
                <th width="125">Resistivity (Ohm cm) Min</th>
                <th width="125">Resistivity (Ohm cm) Average</th>
                <th width="125">Resistivity (Ohm cm) Std Dev</th>
                <th width="125">Oxygen Content (at/cm3)</th>
                <th width="125">Carbon Content (at/cm3)</th>
                <th width="125">Pass or Fail</th>
            </tr>
            <tr>
                <th width="125"></th>
                <th width="125"></th>
                <th width="125"></th>
                <th width="125"></th>
                <th width="125"></th>
                <th width="125"></th>
                <th width="125"></th>
                <th width="125">≤ 15</th>
                <th width="125">≤ 15</th>
                <th width="125">≤ 15</th>
                <th width="125">-</th>
                <th width="125">≤ 227.25</th>
                <th width="125">≥ 226.75</th>
                <th width="125">227±0.25</th>
                <th width="125">-</th>
                <th width="125">≤ 162.25</th>
                <th width="125">≥ 161.75</th>
                <th width="125">162.00±0.25</th>
                <th width="125">-</th>
                <th width="125">≤ 1.96</th>
                <th width="125">≥ 1.02</th>
                <th width="125">1.49±0.47</th>
                <th width="125">-</th>
                <th width="125">≤ 180</th>
                <th width="125">≥ 150</th>
                <th width="125">160+20/-10</th>
                <th width="125">-</th>
                <th width="125">≤ 30</th>
                <th width="125">≤ 30</th>
                <th width="125">≤ 30</th>
                <th width="125">-</th>
                <th width="125">≤ 90.2</th>
                <th width="125">≥ 89.8</th>
                <th width="125">90°±0.2°</th>
                <th width="125">-</th>
                <th width="125">≤ 50</th>
                <th width="125">≤ 50</th>
                <th width="125">≤ 50</th>
                <th width="125">-</th>
                <th width="125"></th>
                <th width="125"></th>
                <th width="125">≤ 2.1</th>
                <th width="125">≥ 0.3</th>
                <th width="125">0.3～2.1</th>
                <th width="125">-</th>
                <th width="125">≤ 8×10E+17</th>
                <th width="125">≤ 5×10E+16</th>
                <th width="125">-</th>
            </tr>
            </thead>
            <tbody>
            <g:each in="${reportList}" status="i" var="dataInstance">
                <tr data-id="data">
                    <td>${i + 1}</td>
                    <g:each in="${tableHeadList}" status="j" var="headInstance">
                        <g:if test="${headInstance != 'RN'}">
                            <td>${dataInstance[headInstance]}</td>
                        </g:if>
                    </g:each>
                </tr>
            </g:each>
            </tbody>
        </table>
    </g:if>
    <g:else>
        <g:render template="../template/emptyPanel"/>
    </g:else>
</div>
<g:render template="../template/unpagination"/>